package arpui.common;

import javafx.scene.control.Label;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderStroke;
import javafx.scene.layout.BorderStrokeStyle;
import javafx.scene.layout.BorderWidths;
import javafx.scene.layout.CornerRadii;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;

public class FXBorderPane extends Pane{
	
	public FXBorderPane(){
		BorderStroke bs = 
				new BorderStroke(Color.BLACK, BorderStrokeStyle.SOLID, new CornerRadii(5), BorderStroke.THIN);

		Border border = new Border(bs);
		
		this.setBorder(border);
	}
	
	public FXBorderPane(String title){
		this();
		Label label = new Label(title);
		this.getChildren().add(label);
		
		label.setLayoutX(20);
		label.setLayoutY(1);
	}
}
